<style>
    #cell-1 { width: 280px; }
    #cell-1 dt { width: 30px; }
    #cell-1 dd { width: 200px; }
    #cell-2 { width: 440px; }
    #cell-2 dt { width: 140px; }
    #cell-2 dd { width: 260px; }
    #cell-3 { width: 340px; }
    #cell-3 dt { width: 200px; }
    #cell-3 dd { width: 100px; }
    #cell-4 { width: 340px; }
    #cell-4 dt { width: 140px; }
    #cell-4 dd { width: 160px; }
    div.vgrid dd { line-height: 20px; padding-right: 40px; }
</style>    

<div class="vheader">
    <h1><?php echo $this->Partners->d->Partner ?></h1>
    <p><?php echo $this->translate("Partner") ?>
</div>

<div class="vcontent">

<div id="cell-1">
    <!--<img class="shadow" src="<?php echo $this->picSrc($this->data['SponsorId'],'u') ?>" />-->
</div>

<div id="cell-2">
    <dl>
        <dt><?php echo $this->translate("Partner") ?></dt>
        <dd><?php echo $this->Partners->d->Partner ?></dd>
        <dt><?php echo $this->translate("Username") ?></dt>
        <dd><?php echo $this->Partners->d->Username ?></dd>
        <dt><?php echo $this->translate("Status") ?></dt>
        <dd><?php echo $this->Partners->d->Status ?></dd>
        <dt><?php echo $this->translate("Contact") ?></dt>
        <dd><?php echo $this->Partners->d->FullName ?></dd>
        <dt><?php echo $this->translate("Email") ?></dt>
        <dd><?php echo $this->replaceEmpty($this->Partners->d->Email,'-') ?></dd>
        <dt><?php echo $this->translate("Comments") ?></dt>
        <dd><?php echo $this->replaceEmpty($this->Partners->d->Comments,'-') ?></dd>
    </dl>
</div>
    
<?php echo $this->partial('partials/performance.phtml', $this->Partners->p); ?>

</div>

<div class="vfooter">
    <div class="menu">
        <?php echo $this->link('/sponsor/partner/add', array('id'=>$this->Partners->d->PartnerId),$this->translate("Edit partner")) ?>
        <?php echo $this->link('/sponsor/sponsor/browse', array('PartnerId'=>$this->Partners->d->PartnerId),$this->translate("Sponsors"), array('target'=>'bottom')) ?>   
        <?php echo $this->link('/sponsor/donation/browse', array('PartnerId'=>$this->Partners->d->PartnerId),$this->translate("Donations"), array('target'=>'bottom')) ?> 
        <?php echo $this->link('/sponsor/donation-allocation/browse', array('PartnerId'=>$this->Partners->d->PartnerId),$this->translate("Loans"),array('target'=>'bottom')) ?>            
    </div>
</div>


<!-- Notes

1. Total donado (con link a historial de donaciones)
2. Total desembolsado (con link a historial de desembolsos)
3. Numero de desembolsos historico
4. Total repagado
5. Cartera activa (con link a prestamos activos)
6. Castigo (con link a prestamos castigados)
7. Total de ingresos
8. Priority index
9. Recycling rate
10. PAR 30

Todoas las figuras que apliquen, con porciento de mujeres
-->